package yxy.cherry.battle.module.affix.buff;

import yxy.cherry.battle.Battle;
import yxy.cherry.battle.Fighter;
import yxy.cherry.battle.module.affix.AffixFactory.BuffTypeEnum;
import yxy.cherry.battle.module.affix.Buff;
import yxy.cherry.battle.module.affix.BuffType;
import yxy.cherry.data.bean.skill;

/** 眩晕 */
@BuffType(Type = BuffTypeEnum.眩晕)
public class Affix_54_眩晕 extends Buff {
	// 跳过行动

	public Affix_54_眩晕(Fighter source, Fighter target, skill skilldata, int[] params) {
		super(source, target, skilldata, params);
	}

	@Override
	public boolean exec(Fighter source, Fighter actor) {
		getAffixContext().set跳过怒气技能(true);
		getAffixContext().set跳过普通技能(true);

		Battle.battleLogger(6,"眩晕"+source.getName()+"跳过怒气技能，普通技能");
		return true;
	}

	@Override
	public BuffType getBuffType() {
		return BuffType.控制效果;
	}

	@Override
	public BuffStateType getBuffStateType() {
		return BuffStateType.眩晕状态;
	}
}